package com.dhcc.bpm.modules.safe.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dhcc.bpm.modules.safe.entity.GatewayControl;
import com.dhcc.bpm.modules.safe.mapper.GatewayControlMapper;
import com.dhcc.bpm.modules.safe.service.IGatewayControlService;
import com.dhcc.bpm.modules.safe.vo.GatewayControlVO;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;

/**
 * @ClassName GatewayControlServiceImpl
 * @Description 网关访问控制表 服务实现类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_gateway_control")
public class GatewayControlServiceImpl extends BaseServiceImpl<GatewayControlMapper, GatewayControl> implements IGatewayControlService {

	@Override
	public IPage<GatewayControlVO> selectGatewayControlPage(IPage<GatewayControlVO> page, GatewayControlVO gatewayControl) {
		return page.setRecords(baseMapper.selectGatewayControlPage(page, gatewayControl));
	}
	@Override
	public int updateRefreshFlag(GatewayControl gatewayControl) {
		return baseMapper.updateRefreshFlag(gatewayControl);
	}
}
